package com.example.finalproject.experiments.lifecycle

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.example.finalproject.R

class SecondActivity : AppCompatActivity() {
    private val tag = "SecondActivity"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second_lifecycle)
        Log.d(tag, "onCreate: SecondActivity")
    }

    override fun onStart() {
        super.onStart()
        Log.d(tag, "onStart: SecondActivity")
    }

    override fun onResume() {
        super.onResume()
        Log.d(tag, "onResume: SecondActivity")
    }

    override fun onPause() {
        super.onPause()
        Log.d(tag, "onPause: SecondActivity")
    }

    override fun onStop() {
        super.onStop()
        Log.d(tag, "onStop: SecondActivity")
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.d(tag, "onDestroy: SecondActivity")
    }
}